package app.service.event
{
	import flash.events.Event;
	
	public class SharedObjectServiceEvent extends Event
	{
		public var soName:String;
		public var value:*;
		public var key:String;
		
		public static const INIT_SHARED_OBJECT:String = "INIT_SHARED_OBJECT";
		public static const SHARED_OBJECT_INITIALIZED:String = "SHARED_OBJECT_INITIALIZED";
		public static const SAVE_VALUE_WITH_KEY:String = "SAVE_VALUE_WITH_KEY"; 
		public static const CLEAR_VALUE_WITH_KEY:String = "CLEAR_VALUE_WITH_KEY"; 
		public static const CLEAR_ALL:String = "CLEAR_ALL";
			
		public function SharedObjectServiceEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event
		{
			var e:SharedObjectServiceEvent = new SharedObjectServiceEvent(type, bubbles, cancelable);
			e.soName = soName;
			e.value = value;
			e.key = key;
			return e;
		}
	}
}